Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-developer is "delete-device">

It allows to delete a device.

Inputs

A JSON with these parameters:
id string
the name of the device (you MUST have the ownership of the device or root account)
contextbroker string
the contextbrokerof the device

An example of the JSON array filled with correct data:

{
    "id": "nameDevice",
    "contextbroker": "NAME_BROKER"
}
    

Outputs

Returns an object containing the result of the delete

Details

Parameters should be passed in msg.payload